﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using System.IO;
using System.Windows.Media.Imaging;
using System.Windows.Data;
using DevExpress.Xpf.Editors;
using DevExpress.Xpf.Utils;
using DevExpress.Xpf.Core.WPFCompatibility;
using DevExpress.Xpf.NavBar;
using DevExpress.Xpf.Editors.Settings;
using sLightLibrary.BasicApp.Views.Forms.User;


namespace sLightLibrary.BasicApp.Views.Forms.User
{
    public partial class ListBase : Page
    {
        public ListBase()
        {
            InitializeComponent();
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

        private void tbrPrint_Click(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
        {
            PrintForm frmPrint = new PrintForm();
            frmPrint.Show();
        }

        private void tbrSaveLayout_Click(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
        {
            SaveLayoutForm frmSaveLayout = new SaveLayoutForm();
            frmSaveLayout.Show();
        }

        private void pageListBase_Loaded(object sender, RoutedEventArgs e)
        {
            ((ComboBoxEditSettings)cboGroupIntervals.EditSettings).ItemsSource = new string[] { "Alphabetical", "Month", "Year", "Range", "CustomInterval", "None" };
            ((ComboBoxEditSettings)lokLayout.EditSettings).ItemsSource = new string[] { "Default" };
            ((ComboBoxEditSettings)lokFilter.EditSettings).ItemsSource = new string[] { "Today", "This Week", "This Month", "This Quarter", "This Year", "My Records", "All Records" };
        }

        private void tbrReplace_Click(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
        {
            ReplaceForm frmReplace = new ReplaceForm();
            frmReplace.Show();
        }

        private void tbrImport_Click(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
        {
            ImportForm frmImport = new ImportForm();
            frmImport.Show();
        }

    }
}
